{template header}

<script type="text/javascript">
function check_input()
{
	var name = document.getElementById('name').value;
	var hi = document.getElementById('hi').value;
	var we = document.getElementById('we').value;
	var x = document.getElementById('x').value;
	var y = document.getElementById('y').value;
	var t = document.getElementById('t').value;
	var city = document.getElementById('city').value;
	var tel = document.getElementById('tel').value;
	var qq = document.getElementById('qq').value;
	var email = document.getElementById('email').value;
	var contents = document.getElementById('contents').value;

	if(name==''){document.getElementById('error_name').innerHTML= "姓名不能为空"; return false;}
	else{document.getElementById('error_name').innerHTML= "";}
	if(!(/^[0-9]*[1-9][0-9]*$/.test(hi))){document.getElementById('error_hi').innerHTML= "身高为正整数"; return false;}
	else{document.getElementById('error_hi').innerHTML= "";}
	if(!(/^[0-9]*[1-9][0-9]*$/.test(we))){document.getElementById('error_we').innerHTML= "体重为正整数"; return false;}
	else{document.getElementById('error_we').innerHTML= "";}
	if(!(/^[0-9]*[1-9][0-9]*$/.test(x))){document.getElementById('error_x').innerHTML= "胸围为正整数"; return false;}
	else{document.getElementById('error_x').innerHTML= "";}
	if(!(/^[0-9]*[1-9][0-9]*$/.test(y))){document.getElementById('error_y').innerHTML= "腰围为正整数"; return false;}
	else{document.getElementById('error_y').innerHTML= "";}
	if(!(/^[0-9]*[1-9][0-9]*$/.test(t))){document.getElementById('error_t').innerHTML= "臀围为正整数"; return false;}
	else{document.getElementById('error_t').innerHTML= "";}
	if(city==''){document.getElementById('error_city').innerHTML= "城市不能为空"; return false;}
	else{document.getElementById('error_city').innerHTML= "";}
	if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(tel))){document.getElementById('error_tel').innerHTML= "手机格式不正确"; return false; }
	else{document.getElementById('error_tel').innerHTML= "";}
	if(!(/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(email))){document.getElementById('error_email').innerHTML= "邮箱格式不正确"; return false;}
	else{document.getElementById('error_email').innerHTML= "";}
	if(!(/^[1-9]*[1-9][0-9]*$/.test(qq))){document.getElementById('error_qq').innerHTML= "QQ格式不正确"; return false;}
	else{document.getElementById('error_qq').innerHTML= "";}

	if(contents==''){document.getElementById('error_contents').innerHTML= "请填写自己的描述"; return false;}
	else{document.getElementById('error_contents').innerHTML= "";}
	

	

}
function tanchu()
{
	if(document.getElementById('div_tanchu').style.display=='block'){document.getElementById('div_tanchu').style.display='none';}
	else
	document.getElementById('div_tanchu').style.display='block';
}
</script>
<div class="wrap">
	<div class="login_main">
    	<div class="ad2"><img src="image/images/250-515.jpg" class="ad2_img" width="250" height="515" alt=""/></div>
        <form action="" name="myform" method="post" onsubmit='return check_input();'>
        	<div class="login_form">
            	<div class="login_input">
                	<label>真实姓名：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if} name="name" id="name" value="{$user_info['true_name']}" class="input_t1" type="text"><p id='error_name' style="color:red;"></p>
                </div>
                <div class="login_input">
                	<label>身&nbsp;&nbsp;高：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="hi" id="hi" value="{$user_info['hight']}" class="input_t3" type="text"><p id='error_hi' style="color:red;"></p>
                </div>
				 <div class="login_input">
                	<label>体&nbsp;&nbsp;重：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="we" id="we" value="{$user_info['weight']}" class="input_t3" type="text"><p id='error_we' style="color:red;"></p>
                </div>
                <div class="login_input">
                	<label>三&nbsp;&nbsp;围：</label>
                    <div class="input_list">
                    	<input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="x" id="x" value="{$user_info['bust']}"class="input_t3" type="text"><p id='error_x' style="color:red;"></p>
                        <input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="y" id="y" value="{$user_info['waist']}" class="input_t3" type="text"><p id='error_y' style="color:red;"></p>
                        <input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="t" id="t" value="{$user_info['hip']}" class="input_t3" type="text"><p id='error_t' style="color:red;"></p>
                    </div>
                </div>
                <div class="login_input">
                	<label>所在城市：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="city" value="{$user_info['city']}" id="city" class="input_t2" type="text"><p id='error_city' style="color:red;"></p>
                </div>
                <div class="login_input">
                	<label>联系电话：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="tel" value="{$user_info['tel']}" id="tel" class="input_t2" type="text"><p id='error_tel' style="color:red;"></p>
                </div>
                <div class="login_input">
                	<label>Email：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="email" value="{$user_info['email']}" id="email" class="input_t2" type="text"><p id='error_email' style="color:red;"></p>
                </div>
                <div class="login_input">
                	<label>工作QQ：</label><input {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="qq" id='qq' value="{$user_info['QQ']}" class="input_t2" type="text"><p id='error_qq' style="color:red;"></p>
                </div>
                <div class="login_text">
                	<label>个人描述：</label><textarea {if $user_info['renzheng_status']!=1}disabled="disabled"{/if}  name="contents"  id="contents" cols="" rows="" class="text_t1">{$user_info['content']}</textarea><p id='error_contents' style="color:red;"></p>
                </div>
            </div>
			<input type="hidden" name="p" id="p" value="register"  />
			<input type="hidden" name="a" id="a" value="sub1" />
            <div class="treaty"></div>
            {if $user_info['renzheng_status']==2}
			<input type="button" name="buts" id="buts"  value="认证审核中" /><!--这里需要更换图片-->
			{elseif $user_info['renzheng_status']==1}
			<input type="submit" name="sub1" id="sub1" class="treaty_b" value="同意提交" />
			{elseif $user_info['renzheng_status']==3}
			<input type="button" name="buts2" id="buts2"  value="已认证" /><input type="button" name="buts3" id="buts3"  value="取消" />
			{/if} 
			
        </form>
        <div class="uploading">
        	<div class="uploading_img"><img src="image/images/3.jpg" width="200" height="200" alt=""/></div>
            <a href="javascript:section_open();" class="uploading_a section_open"><img src="image/images/uploading.jpg" width="98" height="31"/></a>
        </div>
    </div>
</div>


<div id="bgk"></div>
<div class="section">
	<a href="javascript:section_close();" class="section_close" title="关闭">关闭</a>
	<div><!--该div 放上传图片代码-->
	
	</div>
    <div class="section_d">
    	<div class="section_file">
        	<a href="#" class="section_a">
            	<input class="section_l" type="file" name="file" id='tupian' size="12"/>
            </a>
        </div>
        <input name="" class="section_img" type="button" /> 
    </div>
</div>

<div class="cooperation">
    <div class="cooperation_main">
        <h2>合作机构</h2>
        <ul class="cooperation_ul">
		<!--{loop $agency_list $nl}-->
      <li><a href="{$nl['url']}" target="_blank" title="{$nl['title']}"><img src="admin/data/upImage/{$nl['s_img_url']}" width="115" height="70" alt=""/></a></li>
        <!--{/loop}-->
        </ul>
    </div>
</div>
    {template foot}